<?php
declare (strict_types = 1);

namespace app\api\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Brand extends Model
{
    public function category(){
        return $this->belongsTo(Category::class,'cate_id')->bind([
            'cname'=>'cate_name',
            'img'=>'image_url',
        ]);
    }

}
